package com.forezp.serviceribbon.controler;

import com.forezp.serviceribbon.service.RestRibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yudashuai
 * @date 2021/07/23  16:45
 **/
@RestController
public class RestControler {

    @Autowired
    RestRibbonService restRibbonService;

    @GetMapping("/hi")
    public String  restHi(@RequestParam String name){
        return restRibbonService.hiService(name);
    }

}
